import 'package:flutter/material.dart';

class ItemAdd extends StatelessWidget {
  final GestureTapCallback onTap;

  final double size;

  const ItemAdd({Key key, this.onTap, this.size}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      child: Stack(
        alignment: Alignment.center,
        children: [
          ClipRRect(
            borderRadius: BorderRadius.all(Radius.circular(5)),
            child: Container(
              color: Colors.grey[200],
              height: size ?? 68,
              width: size ?? 68,
            ),
          ),
          Image.asset(
            'assets/images/ic_add_item.png',
            width: 30,
          ),
        ],
      ),
    );
  }
}
